package com.shioirikukuri.common.condig;

import com.qiniu.storage.Configuration;
import com.qiniu.storage.UploadManager;
import com.qiniu.util.Auth;

public class QiniuConfig {
	private static final String ACCESS_KEY = "TZh4HBXBQt2dStCw3Ox-2COQ5DOLSSlj1Hls0I4c";
	private static final String SECRET_KEY = "z9mBRNb-RQG4pLD2dGFFyHjVdh4uKT9YL7tGxMYL";
	// 储存空间名
	private static final String BUCKET_NAME = "shioirikukuri1";
	// 外链域名
	private static final String DOMAIN_NAME = "sx2kq5n08.hn-bkt.clouddn.com";


	public static Auth auth() {
		return Auth.create(ACCESS_KEY, SECRET_KEY);
	}

	public static UploadManager uploadManager() {
		return new UploadManager(new Configuration());
	}

	public static String getBucketName() {
		return BUCKET_NAME;
	}

	public static String getDomain() {
		return DOMAIN_NAME;
	}
}